package models

type Comment struct {
	UserId  int64  `gorm:"type:int(3);comment:'用户ID'"`
	HouseId int64  `gorm:"type:int(3);comment:'房源ID'"`
	Comment string `gorm:"type:varchar(100);comment:'看法评价'"`
	Hurt    string `gorm:"type:varchar(30);comment:'需求痛点'"`
}

func (c *Comment) CreateComment() error {
	return DB.Create(&c).Error
}
